﻿using System.ComponentModel.DataAnnotations;
namespace SportMeetingPlanner.Models
{
    public class Subscription
    {
        [Key]
        public virtual int SubscriptionId { get; set; }
        public virtual bool Ball { get; set; }
        public virtual string Comment { get; set; }
        public virtual int MeetingId { get; set; }
        [Required]
        [Range(1, 100, ErrorMessage = "Nr of persons must be between 1 and 100")]
        public virtual int NrPersons { get; set; }
        public virtual Meeting Meeting { get; set; }
        public virtual string UserName { get; set; }
    }
}